path_set_closed

Flags the given path as being closed or open.

语法:

path_set_closed(index, closed);


参数 描述
index The index of the path to change.
closed Whether the path is closed (true) or not (false).


返回: N/A(无返回值)


描述

This function can be used to flag a given path as being open (false) or closed (true). A closed path has its start point connected to its end point, forming a loop, and an open path has a definitive, unconnected start and finish. This function changes the actual path resource, and so will permanently affect how the path is used by all instances in the game from the moment the function is used until the end of the game.




例如:

path_set_closed(path0, true);

This will set the path indexed in the resource "path0" to be a closed path.


上一页: Changing Paths
下一页: path_set_kind
© Copyright YoYo Games Ltd. 2018 All Rights Reserved